.class public Les/p9;
.super Ljava/lang/Object;
.source "Track.java"

# interfaces
.implements Les/n9$a;


# instance fields
.field private A:J

.field private B:J

.field private C:I

.field private D:Z

.field private E:I

.field private F:I

.field private G:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/util/l;",
            ">;"
        }
    .end annotation
.end field

.field private H:J

.field private I:J

.field private J:Z

.field private K:J

.field private L:Z

.field private M:Les/m9;

.field private N:I

.field private O:J

.field private P:I

.field private a:Les/o9;

.field private b:Z

.field private c:Z

.field private d:Z

.field private e:J

.field private f:J

.field private g:Z

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private i:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private j:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "[I>;"
        }
    .end annotation
.end field

.field private k:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private l:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "[I>;"
        }
    .end annotation
.end field

.field private m:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "[I>;"
        }
    .end annotation
.end field

.field private n:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation
.end field

.field private o:J

.field private p:J

.field private q:I

.field private r:I

.field private s:I

.field private t:I

.field private u:I

.field private v:I

.field private w:Ljava/lang/String;

.field private x:[B

.field private y:I

.field private z:J


# direct methods
.method constructor <init>(Les/o9;Landroid/media/MediaFormat;I)V
    .locals 7

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Les/p9;->e:J

    .line 3
    iput-wide v0, p0, Les/p9;->f:J

    const/4 v2, 0x0

    .line 4
    iput-boolean v2, p0, Les/p9;->g:Z

    .line 5
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->h:Ljava/util/List;

    .line 6
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->i:Ljava/util/List;

    .line 7
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->j:Ljava/util/List;

    .line 8
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->k:Ljava/util/List;

    .line 9
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->l:Ljava/util/List;

    .line 10
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->m:Ljava/util/List;

    .line 11
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->n:Ljava/util/List;

    .line 12
    iput v2, p0, Les/p9;->y:I

    const/4 v3, 0x1

    .line 13
    iput v3, p0, Les/p9;->C:I

    .line 14
    iput-boolean v3, p0, Les/p9;->D:Z

    .line 15
    iput v2, p0, Les/p9;->E:I

    .line 16
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Les/p9;->G:Ljava/util/List;

    const-wide/32 v3, 0xf4240

    .line 17
    iput-wide v3, p0, Les/p9;->H:J

    .line 18
    iput-wide v0, p0, Les/p9;->I:J

    .line 19
    iput-boolean v2, p0, Les/p9;->J:Z

    .line 20
    iput-boolean v2, p0, Les/p9;->L:Z

    .line 21
    iput v2, p0, Les/p9;->N:I

    .line 22
    iput-object p1, p0, Les/p9;->a:Les/o9;

    .line 23
    iput p3, p0, Les/p9;->r:I

    const-string p1, "mime"

    .line 24
    invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string p3, "audio/"

    .line 25
    invoke-virtual {p1, p3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p3

    iput-boolean p3, p0, Les/p9;->b:Z

    const-string p3, "video/"

    .line 26
    invoke-virtual {p1, p3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p3

    iput-boolean p3, p0, Les/p9;->c:Z

    const-string p3, "video/avc"

    .line 27
    invoke-virtual {p1, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    iput-boolean p3, p0, Les/p9;->d:Z

    .line 28
    iput-object p1, p0, Les/p9;->w:Ljava/lang/String;

    const p1, 0x15f90

    .line 29
    iput p1, p0, Les/p9;->q:I

    .line 30
    iget-boolean p1, p0, Les/p9;->c:Z

    if-eqz p1, :cond_0

    const-string p1, "width"

    .line 31
    invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/p9;->s:I

    const-string p1, "height"

    .line 32
    invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/p9;->t:I

    goto :goto_0

    .line 33
    :cond_0
    iget-boolean p1, p0, Les/p9;->b:Z

    if-eqz p1, :cond_1

    const-string p1, "sample-rate"

    .line 34
    invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/p9;->u:I

    const-string p1, "channel-count"

    .line 35
    invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/p9;->v:I

    .line 36
    iget p1, p0, Les/p9;->u:I

    iput p1, p0, Les/p9;->q:I

    :cond_1
    :goto_0
    const-wide v0, 0xd693a400L

    .line 37
    iget p1, p0, Les/p9;->q:I

    int-to-long v5, p1

    mul-long v5, v5, v0

    const-wide/32 v0, 0x7a120

    add-long/2addr v5, v0

    div-long/2addr v5, v3

    iput-wide v5, p0, Les/p9;->K:J

    .line 38
    invoke-direct {p0, p2}, Les/p9;->a(Landroid/media/MediaFormat;)V

    const-wide/16 p1, -0x1

    .line 39
    iput-wide p1, p0, Les/p9;->o:J

    .line 40
    new-instance p1, Les/m9;

    const/16 p2, 0x1f4

    invoke-direct {p1, p2}, Les/m9;-><init>(I)V

    iput-object p1, p0, Les/p9;->M:Les/m9;

    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/media/util/l;J)I
    .locals 17
    .param p1    # Lcom/esfile/screen/recorder/media/util/l;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    .line 16
    iget-object v2, v1, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v3, v2, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    .line 17
    iget v2, v2, Landroid/media/MediaCodec$BufferInfo;->flags:I

    .line 18
    iget-boolean v5, v0, Les/p9;->d:Z

    if-eqz v5, :cond_0

    .line 19
    iget-object v5, v1, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-static {v5}, Les/p9;->b(Ljava/nio/ByteBuffer;)V

    .line 20
    :cond_0
    iget-object v5, v1, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v5}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v5

    .line 21
    iget-boolean v6, v0, Les/p9;->d:Z

    if-eqz v6, :cond_1

    add-int/lit8 v5, v5, 0x4

    .line 22
    :cond_1
    iget-wide v6, v0, Les/p9;->f:J

    int-to-long v8, v5

    add-long/2addr v6, v8

    iput-wide v6, v0, Les/p9;->f:J

    .line 23
    invoke-direct/range {p0 .. p0}, Les/p9;->v()V

    .line 24
    iget-object v6, v0, Les/p9;->a:Les/o9;

    invoke-virtual {v6}, Les/o9;->a()Z

    move-result v6

    if-eqz v6, :cond_2

    const/4 v1, -0x2

    return v1

    :cond_2
    const/4 v6, 0x1

    and-int/2addr v2, v6

    if-eqz v2, :cond_3

    const/4 v2, 0x1

    goto :goto_0

    :cond_3
    const/4 v2, 0x0

    .line 25
    :goto_0
    iget-boolean v8, v0, Les/p9;->c:Z

    if-eqz v8, :cond_4

    iget-boolean v8, v0, Les/p9;->g:Z

    if-nez v8, :cond_4

    if-nez v2, :cond_4

    const-string v1, "Video skip non-key frame"

    .line 26
    invoke-static {v1}, Les/p9;->b(Ljava/lang/String;)V

    return v6

    .line 27
    :cond_4
    iget-boolean v8, v0, Les/p9;->c:Z

    if-eqz v8, :cond_5

    if-eqz v2, :cond_5

    .line 28
    iput-boolean v6, v0, Les/p9;->g:Z

    .line 29
    :cond_5
    iget-object v8, v0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v8}, Ljava/util/List;->isEmpty()Z

    move-result v8

    if-eqz v8, :cond_6

    .line 30
    iput-wide v3, v0, Les/p9;->o:J

    .line 31
    iget-object v8, v0, Les/p9;->a:Les/o9;

    invoke-virtual {v8, v3, v4}, Les/o9;->b(J)V

    .line 32
    :cond_6
    iget-wide v8, v0, Les/p9;->o:J

    sub-long/2addr v3, v8

    .line 33
    iget-wide v8, v0, Les/p9;->B:J

    cmp-long v10, v3, v8

    if-lez v10, :cond_7

    .line 34
    iput-wide v3, v0, Les/p9;->B:J

    .line 35
    :cond_7
    iget v8, v0, Les/p9;->q:I

    int-to-long v9, v8

    mul-long v9, v9, v3

    const-wide/32 v11, 0x7a120

    add-long/2addr v9, v11

    const-wide/32 v13, 0xf4240

    div-long/2addr v9, v13

    iget-wide v6, v0, Les/p9;->z:J

    int-to-long v13, v8

    mul-long v6, v6, v13

    add-long/2addr v6, v11

    const-wide/32 v11, 0xf4240

    div-long/2addr v6, v11

    sub-long/2addr v9, v6

    .line 36
    iget-wide v6, v0, Les/p9;->K:J

    const-wide/16 v11, 0x0

    cmp-long v8, v6, v11

    if-lez v8, :cond_8

    cmp-long v8, v9, v6

    if-lez v8, :cond_8

    .line 37
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "writeSampleDataInner,"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "startTimeUs "

    .line 38
    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v7, v0, Les/p9;->o:J

    invoke-virtual {v6, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, ", currDurationTicks "

    .line 39
    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v9, v10}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, ", curPTS "

    .line 40
    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, ", lastPTS "

    .line 41
    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v7, v0, Les/p9;->z:J

    invoke-virtual {v6, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, ", isAudio "

    .line 42
    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual/range {p0 .. p0}, Les/p9;->f()Z

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    .line 43
    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v0, v6}, Les/p9;->c(Ljava/lang/String;)V

    :cond_8
    cmp-long v6, v9, v11

    if-gez v6, :cond_a

    .line 44
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "do not support out of order frames (timestamp: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, " < last: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v2, v0, Les/p9;->z:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, " for "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v2, v0, Les/p9;->b:Z

    if-eqz v2, :cond_9

    const-string v2, "Audio"

    goto :goto_1

    :cond_9
    const-string v2, "Video"

    :goto_1
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " track"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Les/p9;->a(Ljava/lang/String;)V

    const/4 v1, -0x3

    return v1

    .line 45
    :cond_a
    iget-wide v6, v0, Les/p9;->A:J

    cmp-long v8, v6, v11

    if-lez v8, :cond_b

    cmp-long v8, v9, v6

    if-eqz v8, :cond_b

    sub-long v13, v6, v9

    const-wide/32 v15, 0xf4240

    mul-long v13, v13, v15

    .line 46
    iget v8, v0, Les/p9;->q:I

    div-int/lit8 v15, v8, 0x2

    int-to-long v11, v15

    add-long/2addr v13, v11

    int-to-long v11, v8

    div-long/2addr v13, v11

    const-wide/16 v11, -0x64

    cmp-long v8, v13, v11

    if-lez v8, :cond_b

    const-wide/16 v11, 0x64

    cmp-long v8, v13, v11

    if-gez v8, :cond_b

    add-long/2addr v3, v13

    move-wide v9, v6

    .line 47
    :cond_b
    iget-object v6, v0, Les/p9;->h:Ljava/util/List;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-interface {v6, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 48
    iget-object v6, v0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    const/4 v7, 0x2

    if-le v6, v7, :cond_e

    .line 49
    iget-object v6, v0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    const/4 v8, 0x3

    if-eq v6, v8, :cond_d

    iget-wide v11, v0, Les/p9;->A:J

    cmp-long v6, v9, v11

    if-eqz v6, :cond_c

    goto :goto_2

    .line 50
    :cond_c
    iget v6, v0, Les/p9;->C:I

    const/4 v8, 0x1

    add-int/2addr v6, v8

    iput v6, v0, Les/p9;->C:I

    goto :goto_3

    :cond_d
    :goto_2
    const/4 v8, 0x1

    .line 51
    iget v6, v0, Les/p9;->C:I

    iget-wide v11, v0, Les/p9;->A:J

    long-to-int v12, v11

    invoke-direct {v0, v6, v12}, Les/p9;->b(II)V

    .line 52
    iput v8, v0, Les/p9;->C:I

    .line 53
    :cond_e
    :goto_3
    iget-boolean v6, v0, Les/p9;->D:Z

    if-eqz v6, :cond_10

    .line 54
    iget-object v6, v0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v6, v7, :cond_f

    iget v6, v0, Les/p9;->P:I

    if-eq v6, v5, :cond_f

    const/4 v6, 0x0

    .line 55
    iput-boolean v6, v0, Les/p9;->D:Z

    .line 56
    :cond_f
    iput v5, v0, Les/p9;->P:I

    .line 57
    :cond_10
    iput-wide v9, v0, Les/p9;->A:J

    .line 58
    iput-wide v3, v0, Les/p9;->z:J

    if-eqz v2, :cond_11

    .line 59
    iget-object v2, v0, Les/p9;->k:Ljava/util/List;

    iget-object v5, v0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-interface {v2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 60
    :cond_11
    iget-object v2, v0, Les/p9;->a:Les/o9;

    invoke-virtual {v2}, Les/o9;->b()I

    move-result v2

    const/4 v5, -0x1

    const/4 v6, 0x1

    if-ne v2, v6, :cond_15

    .line 61
    iget-boolean v2, v0, Les/p9;->d:Z

    if-eqz v2, :cond_12

    iget-object v2, v0, Les/p9;->a:Les/o9;

    iget-boolean v3, v0, Les/p9;->b:Z

    invoke-virtual {v2, v3, v1}, Les/o9;->a(ZLcom/esfile/screen/recorder/media/util/l;)J

    move-result-wide v2

    goto :goto_4

    :cond_12
    iget-object v2, v0, Les/p9;->a:Les/o9;

    iget-boolean v3, v0, Les/p9;->b:Z

    .line 62
    invoke-virtual {v2, v3, v1}, Les/o9;->b(ZLcom/esfile/screen/recorder/media/util/l;)J

    move-result-wide v2

    :goto_4
    const-wide/16 v6, 0x0

    cmp-long v4, v2, v6

    if-gez v4, :cond_13

    return v5

    .line 63
    :cond_13
    iget-object v4, v0, Les/p9;->i:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    iget-object v5, v0, Les/p9;->n:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    add-int/2addr v4, v5

    if-nez v4, :cond_14

    .line 64
    invoke-virtual {v0, v2, v3}, Les/p9;->b(J)V

    .line 65
    :cond_14
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    goto/16 :goto_5

    .line 66
    :cond_15
    iget-object v2, v0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 67
    iget-wide v1, v0, Les/p9;->H:J

    const-wide/16 v6, 0x0

    cmp-long v8, v1, v6

    if-gtz v8, :cond_16

    iget-wide v1, v0, Les/p9;->I:J

    cmp-long v8, v1, v6

    if-gtz v8, :cond_16

    .line 68
    invoke-direct/range {p0 .. p0}, Les/p9;->u()Z

    move-result v1

    if-nez v1, :cond_1e

    return v5

    .line 69
    :cond_16
    iget-wide v1, v0, Les/p9;->H:J

    cmp-long v8, v1, v6

    if-lez v8, :cond_1b

    .line 70
    iget-wide v8, v0, Les/p9;->p:J

    cmp-long v10, v8, v6

    if-nez v10, :cond_17

    .line 71
    iput-wide v3, v0, Les/p9;->p:J

    goto :goto_5

    :cond_17
    sub-long v6, v3, v8

    cmp-long v8, v6, v1

    if-lez v8, :cond_1e

    .line 72
    iget v1, v0, Les/p9;->E:I

    const/4 v2, 0x1

    add-int/2addr v1, v2

    iput v1, v0, Les/p9;->E:I

    if-eq v1, v2, :cond_18

    .line 73
    iget v1, v0, Les/p9;->F:I

    iget-object v2, v0, Les/p9;->G:Ljava/util/List;

    .line 74
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-eq v1, v2, :cond_19

    .line 75
    :cond_18
    iget-object v1, v0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    iput v1, v0, Les/p9;->F:I

    .line 76
    iget v2, v0, Les/p9;->E:I

    invoke-direct {v0, v2, v1}, Les/p9;->a(II)V

    .line 77
    :cond_19
    invoke-direct/range {p0 .. p0}, Les/p9;->u()Z

    move-result v1

    if-nez v1, :cond_1a

    return v5

    .line 78
    :cond_1a
    iput-wide v3, v0, Les/p9;->p:J

    goto :goto_5

    .line 79
    :cond_1b
    iget-object v1, v0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    int-to-long v1, v1

    iget-wide v3, v0, Les/p9;->I:J

    cmp-long v6, v1, v3

    if-ltz v6, :cond_1e

    .line 80
    iget v1, v0, Les/p9;->E:I

    const/4 v2, 0x1

    add-int/2addr v1, v2

    iput v1, v0, Les/p9;->E:I

    if-eq v1, v2, :cond_1c

    .line 81
    iget v1, v0, Les/p9;->F:I

    iget-object v2, v0, Les/p9;->G:Ljava/util/List;

    .line 82
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-eq v1, v2, :cond_1d

    .line 83
    :cond_1c
    iget-object v1, v0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    iput v1, v0, Les/p9;->F:I

    .line 84
    iget v2, v0, Les/p9;->E:I

    invoke-direct {v0, v2, v1}, Les/p9;->a(II)V

    .line 85
    :cond_1d
    invoke-direct/range {p0 .. p0}, Les/p9;->u()Z

    move-result v1

    if-nez v1, :cond_1e

    return v5

    :cond_1e
    :goto_5
    const/4 v1, 0x0

    return v1
.end method

.method private a(Ljava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;)Lcom/esfile/screen/recorder/media/util/l;
    .locals 7

    .line 3
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 4
    iget v0, p2, Landroid/media/MediaCodec$BufferInfo;->offset:I

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 5
    iget v0, p2, Landroid/media/MediaCodec$BufferInfo;->offset:I

    iget v1, p2, Landroid/media/MediaCodec$BufferInfo;->size:I

    add-int/2addr v0, v1

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    .line 6
    iget-object v0, p0, Les/p9;->M:Les/m9;

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v1

    invoke-virtual {v0, v1}, Les/m9;->a(I)Lcom/esfile/screen/recorder/media/util/l;

    move-result-object v0

    .line 7
    iget-object v1, v0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v2, p2, Landroid/media/MediaCodec$BufferInfo;->offset:I

    iget v3, p2, Landroid/media/MediaCodec$BufferInfo;->size:I

    iget-wide v4, p2, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    iget v6, p2, Landroid/media/MediaCodec$BufferInfo;->flags:I

    invoke-virtual/range {v1 .. v6}, Landroid/media/MediaCodec$BufferInfo;->set(IIJI)V

    .line 8
    iget-object p2, v0, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 9
    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 10
    invoke-virtual {p2, p1}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;

    .line 11
    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;

    return-object v0
.end method

.method private a(II)V
    .locals 3

    .line 86
    iget-object v0, p0, Les/p9;->j:Ljava/util/List;

    const/4 v1, 0x2

    new-array v1, v1, [I

    const/4 v2, 0x0

    aput p1, v1, v2

    const/4 p1, 0x1

    aput p2, v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private a(Landroid/media/MediaFormat;)V
    .locals 2

    const-string v0, "csd-0"

    .line 87
    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;)Ljava/nio/ByteBuffer;

    move-result-object v0

    const-string v1, "csd-1"

    .line 88
    invoke-static {p1, v1}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;)Ljava/nio/ByteBuffer;

    move-result-object p1

    .line 89
    iget-boolean v1, p0, Les/p9;->c:Z

    if-eqz v1, :cond_0

    .line 90
    invoke-direct {p0, v0, p1}, Les/p9;->a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V

    goto :goto_0

    .line 91
    :cond_0
    invoke-direct {p0, v0}, Les/p9;->a(Ljava/nio/ByteBuffer;)V

    :goto_0
    return-void
.end method

.method private static a(Ljava/lang/String;)V
    .locals 1

    const-string v0, "trk"

    .line 120
    invoke-static {v0, p0}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/nio/ByteBuffer;)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 92
    :cond_0
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v0

    new-array v0, v0, [B

    iput-object v0, p0, Les/p9;->x:[B

    .line 93
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->mark()Ljava/nio/Buffer;

    .line 94
    iget-object v0, p0, Les/p9;->x:[B

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    .line 95
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->reset()Ljava/nio/Buffer;

    .line 96
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p1

    iput p1, p0, Les/p9;->y:I

    return-void
.end method

.method private a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V
    .locals 12

    if-eqz p1, :cond_b

    if-nez p2, :cond_0

    goto/16 :goto_4

    .line 97
    :cond_0
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v0

    new-array v1, v0, [B

    .line 98
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->mark()Ljava/nio/Buffer;

    .line 99
    invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    .line 100
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->reset()Ljava/nio/Buffer;

    .line 101
    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p1

    new-array v2, p1, [B

    .line 102
    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->mark()Ljava/nio/Buffer;

    .line 103
    invoke-virtual {p2, v2}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    .line 104
    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->reset()Ljava/nio/Buffer;

    const/16 p2, 0x400

    new-array p2, p2, [B

    .line 105
    iput-object p2, p0, Les/p9;->x:[B

    const/4 v3, 0x0

    const/4 v4, 0x1

    aput-byte v4, p2, v3

    const/16 v5, 0x64

    aput-byte v5, p2, v4

    const/4 v5, 0x2

    aput-byte v3, p2, v5

    const/16 v5, 0xd

    const/4 v6, 0x3

    aput-byte v5, p2, v6

    const/4 v5, -0x1

    const/4 v6, 0x4

    aput-byte v5, p2, v6

    const/4 p2, 0x6

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    :cond_1
    add-int/lit8 v8, v0, -0x4

    if-ge v5, v8, :cond_3

    .line 106
    aget-byte v9, v1, v5

    and-int/lit16 v9, v9, 0xff

    if-nez v9, :cond_2

    add-int/lit8 v9, v5, 0x1

    aget-byte v9, v1, v9

    and-int/lit16 v9, v9, 0xff

    if-nez v9, :cond_2

    add-int/lit8 v9, v5, 0x2

    aget-byte v9, v1, v9

    and-int/lit16 v9, v9, 0xff

    if-nez v9, :cond_2

    add-int/lit8 v9, v5, 0x3

    aget-byte v9, v1, v9

    and-int/lit16 v9, v9, 0xff

    if-ne v9, v4, :cond_2

    goto :goto_0

    :cond_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    :cond_3
    :goto_0
    if-lt v5, v8, :cond_4

    move v5, v0

    :cond_4
    if-lez v7, :cond_5

    sub-int v8, v5, v7

    .line 107
    iget-object v9, p0, Les/p9;->x:[B

    add-int/lit8 v10, p2, 0x1

    shr-int/lit8 v11, v8, 0x8

    int-to-byte v11, v11

    aput-byte v11, v9, p2

    add-int/lit8 p2, v10, 0x1

    and-int/lit16 v11, v8, 0xff

    int-to-byte v11, v11

    .line 108
    aput-byte v11, v9, v10

    .line 109
    invoke-static {v1, v7, v9, p2, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/2addr p2, v8

    add-int/lit8 v6, v6, 0x1

    :cond_5
    add-int/lit8 v7, v5, 0x4

    move v5, v7

    :goto_1
    if-lt v5, v0, :cond_1

    .line 110
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "csd0 contains "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, " params"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "trk"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 111
    iget-object v0, p0, Les/p9;->x:[B

    const/4 v1, 0x5

    or-int/lit16 v5, v6, 0xe0

    int-to-byte v5, v5

    aput-byte v5, v0, v1

    add-int/lit8 v0, p2, 0x1

    const/4 v1, 0x0

    const/4 v5, 0x0

    :cond_6
    add-int/lit8 v6, p1, -0x4

    if-ge v3, v6, :cond_8

    .line 112
    aget-byte v7, v2, v3

    and-int/lit16 v7, v7, 0xff

    if-nez v7, :cond_7

    add-int/lit8 v7, v3, 0x1

    aget-byte v7, v2, v7

    and-int/lit16 v7, v7, 0xff

    if-nez v7, :cond_7

    add-int/lit8 v7, v3, 0x2

    aget-byte v7, v2, v7

    and-int/lit16 v7, v7, 0xff

    if-nez v7, :cond_7

    add-int/lit8 v7, v3, 0x3

    aget-byte v7, v2, v7

    and-int/lit16 v7, v7, 0xff

    if-ne v7, v4, :cond_7

    goto :goto_2

    :cond_7
    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    :cond_8
    :goto_2
    if-lt v3, v6, :cond_9

    move v3, p1

    :cond_9
    if-lez v5, :cond_a

    sub-int v6, v3, v5

    .line 113
    iget-object v7, p0, Les/p9;->x:[B

    add-int/lit8 v8, v0, 0x1

    shr-int/lit8 v9, v6, 0x8

    int-to-byte v9, v9

    aput-byte v9, v7, v0

    add-int/lit8 v0, v8, 0x1

    and-int/lit16 v9, v6, 0xff

    int-to-byte v9, v9

    .line 114
    aput-byte v9, v7, v8

    .line 115
    invoke-static {v2, v5, v7, v0, v6}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/2addr v0, v6

    add-int/lit8 v1, v1, 0x1

    :cond_a
    add-int/lit8 v3, v3, 0x4

    move v5, v3

    :goto_3
    if-lt v3, p1, :cond_6

    .line 116
    iget-object p1, p0, Les/p9;->x:[B

    int-to-byte v1, v1

    aput-byte v1, p1, p2

    .line 117
    iput v0, p0, Les/p9;->y:I

    :cond_b
    :goto_4
    return-void
.end method

.method private b(II)V
    .locals 3

    if-nez p2, :cond_0

    .line 6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "0-duration samples found: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/p9;->b(Ljava/lang/String;)V

    .line 7
    :cond_0
    iget-object v0, p0, Les/p9;->l:Ljava/util/List;

    const/4 v1, 0x2

    new-array v1, v1, [I

    const/4 v2, 0x0

    aput p1, v1, v2

    const/4 p1, 0x1

    aput p2, v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private static b(Ljava/lang/String;)V
    .locals 1

    const-string v0, "trk"

    .line 14
    invoke-static {v0, p0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private static b(Ljava/nio/ByteBuffer;)V
    .locals 2

    .line 8
    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v0

    const/4 v1, 0x4

    if-ge v0, v1, :cond_0

    return-void

    .line 9
    :cond_0
    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->mark()Ljava/nio/Buffer;

    .line 10
    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->get()B

    move-result v0

    and-int/lit16 v0, v0, 0xff

    if-nez v0, :cond_1

    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->get()B

    move-result v0

    and-int/lit16 v0, v0, 0xff

    if-nez v0, :cond_1

    .line 11
    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->get()B

    move-result v0

    and-int/lit16 v0, v0, 0xff

    if-nez v0, :cond_1

    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->get()B

    move-result v0

    and-int/lit16 v0, v0, 0xff

    const/4 v1, 0x1

    if-eq v0, v1, :cond_2

    .line 12
    :cond_1
    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->reset()Ljava/nio/Buffer;

    :cond_2
    return-void
.end method

.method private c(J)J
    .locals 7

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-ltz v2, :cond_0

    .line 9
    iget-wide v2, p0, Les/p9;->o:J

    const-wide/16 v4, -0x1

    cmp-long v6, v2, v4

    if-eqz v6, :cond_0

    cmp-long v4, v2, p1

    if-eqz v4, :cond_0

    sub-long v0, v2, p1

    :cond_0
    return-wide v0
.end method

.method private c(Ljava/lang/String;)V
    .locals 7

    .line 1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 2
    iget-wide v2, p0, Les/p9;->O:J

    sub-long v2, v0, v2

    const-wide/16 v4, 0x1f4

    cmp-long v6, v2, v4

    if-gez v6, :cond_0

    return-void

    .line 3
    :cond_0
    iput-wide v0, p0, Les/p9;->O:J

    .line 4
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v1, "exception"

    const-string v2, "LARGEPTSINTERVALERR"

    .line 5
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "message"

    .line 6
    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    invoke-static {v0}, Les/la;->a(Landroid/os/Bundle;)V

    .line 8
    new-instance v0, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$LargePTSIntervalException;

    invoke-direct {v0, p1}, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$LargePTSIntervalException;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Les/la;->a(Ljava/lang/Throwable;)V

    return-void
.end method

.method private u()Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/p9;->a:Les/o9;

    iget-object v1, p0, Les/p9;->G:Ljava/util/List;

    invoke-virtual {v0, p0, v1}, Les/o9;->a(Les/p9;Ljava/util/List;)Z

    move-result v0

    .line 2
    iget-object v1, p0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    return v0
.end method

.method private v()V
    .locals 7

    .line 1
    iget-object v0, p0, Les/p9;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iget-boolean v1, p0, Les/p9;->L:Z

    const/4 v2, 0x4

    const/16 v3, 0x8

    if-eqz v1, :cond_0

    const/16 v1, 0x8

    goto :goto_0

    :cond_0
    const/4 v1, 0x4

    :goto_0
    mul-int v0, v0, v1

    iget-object v1, p0, Les/p9;->n:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    mul-int/lit8 v1, v1, 0x8

    add-int/2addr v0, v1

    .line 2
    iget-wide v4, p0, Les/p9;->f:J

    iput-wide v4, p0, Les/p9;->e:J

    .line 3
    iget-object v1, p0, Les/p9;->j:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    mul-int/lit8 v1, v1, 0xc

    iget-object v6, p0, Les/p9;->k:Ljava/util/List;

    .line 4
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    mul-int/lit8 v6, v6, 0x4

    add-int/2addr v1, v6

    iget-object v6, p0, Les/p9;->l:Ljava/util/List;

    .line 5
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    mul-int/lit8 v6, v6, 0x8

    add-int/2addr v1, v6

    iget-object v6, p0, Les/p9;->m:Ljava/util/List;

    .line 6
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    mul-int/lit8 v6, v6, 0x8

    add-int/2addr v1, v6

    add-int/2addr v1, v0

    iget-object v0, p0, Les/p9;->h:Ljava/util/List;

    .line 7
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    mul-int/lit8 v0, v0, 0x4

    add-int/2addr v1, v0

    int-to-long v0, v1

    add-long/2addr v4, v0

    iput-wide v4, p0, Les/p9;->e:J

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 118
    iget v0, p0, Les/p9;->q:I

    return v0
.end method

.method public a(Ljava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;J)I
    .locals 2
    .param p1    # Ljava/nio/ByteBuffer;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 12
    iget-boolean v0, p0, Les/p9;->J:Z

    if-nez v0, :cond_0

    const/4 p1, 0x1

    return p1

    .line 13
    :cond_0
    iget v0, p0, Les/p9;->N:I

    const/4 v1, -0x1

    if-gt v0, v1, :cond_1

    return v0

    .line 14
    :cond_1
    invoke-direct {p0, p1, p2}, Les/p9;->a(Ljava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;)Lcom/esfile/screen/recorder/media/util/l;

    move-result-object p1

    .line 15
    invoke-direct {p0, p1, p3, p4}, Les/p9;->a(Lcom/esfile/screen/recorder/media/util/l;J)I

    move-result p1

    return p1
.end method

.method public a(J)J
    .locals 2

    .line 119
    iget-wide v0, p0, Les/p9;->B:J

    invoke-direct {p0, p1, p2}, Les/p9;->c(J)J

    move-result-wide p1

    add-long/2addr v0, p1

    return-wide v0
.end method

.method public a(I)V
    .locals 2

    const-wide/16 v0, 0x0

    .line 1
    iput-wide v0, p0, Les/p9;->H:J

    int-to-long v0, p1

    .line 2
    iput-wide v0, p0, Les/p9;->I:J

    return-void
.end method

.method public b()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .line 13
    iget-object v0, p0, Les/p9;->h:Ljava/util/List;

    return-object v0
.end method

.method public b(J)V
    .locals 3

    .line 1
    iget-object v0, p0, Les/p9;->a:Les/o9;

    invoke-virtual {v0}, Les/o9;->c()Z

    move-result v0

    if-nez v0, :cond_0

    const-wide v0, 0xffffffffL

    cmp-long v2, p1, v0

    if-lez v2, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Les/p9;->L:Z

    .line 3
    :cond_0
    iget-boolean v0, p0, Les/p9;->L:Z

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Les/p9;->n:Ljava/util/List;

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Les/p9;->i:Ljava/util/List;

    long-to-int p2, p1

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_0
    return-void
.end method

.method public c()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "[I>;"
        }
    .end annotation

    .line 10
    iget-object v0, p0, Les/p9;->j:Ljava/util/List;

    return-object v0
.end method

.method public d()I
    .locals 1

    .line 1
    iget v0, p0, Les/p9;->u:I

    return v0
.end method

.method public e()I
    .locals 1

    .line 1
    iget v0, p0, Les/p9;->y:I

    return v0
.end method

.method public f()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/p9;->b:Z

    return v0
.end method

.method public g()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/p9;->w:Ljava/lang/String;

    return-object v0
.end method

.method public getHeight()I
    .locals 1

    .line 1
    iget v0, p0, Les/p9;->t:I

    return v0
.end method

.method public getWidth()I
    .locals 1

    .line 1
    iget v0, p0, Les/p9;->s:I

    return v0
.end method

.method public h()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/p9;->n:Ljava/util/List;

    return-object v0
.end method

.method public i()I
    .locals 1

    .line 1
    iget v0, p0, Les/p9;->r:I

    return v0
.end method

.method public j()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/p9;->i:Ljava/util/List;

    return-object v0
.end method

.method public k()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public l()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "[I>;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/p9;->l:Ljava/util/List;

    return-object v0
.end method

.method public m()[B
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 1
    iget-object v0, p0, Les/p9;->x:[B

    return-object v0
.end method

.method public n()Ljava/util/List;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/p9;->k:Ljava/util/List;

    return-object v0
.end method

.method public o()J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/p9;->o:J

    return-wide v0
.end method

.method public p()I
    .locals 1

    .line 1
    iget v0, p0, Les/p9;->v:I

    return v0
.end method

.method public q()J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/p9;->e:J

    return-wide v0
.end method

.method public r()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/p9;->d:Z

    return v0
.end method

.method public s()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Les/p9;->J:Z

    return-void
.end method

.method public t()V
    .locals 5

    .line 1
    iget-boolean v0, p0, Les/p9;->J:Z

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/p9;->J:Z

    .line 3
    iget-object v1, p0, Les/p9;->a:Les/o9;

    invoke-virtual {v1}, Les/o9;->b()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    .line 4
    iget-object v1, p0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-direct {p0, v2, v1}, Les/p9;->a(II)V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v1, p0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_2

    .line 6
    iget v1, p0, Les/p9;->E:I

    add-int/2addr v1, v2

    iput v1, p0, Les/p9;->E:I

    iget-object v3, p0, Les/p9;->G:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-direct {p0, v1, v3}, Les/p9;->a(II)V

    .line 7
    invoke-direct {p0}, Les/p9;->u()Z

    .line 8
    :cond_2
    :goto_0
    iget-object v1, p0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ne v1, v2, :cond_3

    const-wide/16 v3, 0x0

    .line 9
    iput-wide v3, p0, Les/p9;->A:J

    goto :goto_1

    .line 10
    :cond_3
    iget v1, p0, Les/p9;->C:I

    add-int/2addr v1, v2

    iput v1, p0, Les/p9;->C:I

    .line 11
    :goto_1
    iget-object v1, p0, Les/p9;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v3, 0x2

    if-gt v1, v3, :cond_4

    .line 12
    iget-wide v3, p0, Les/p9;->A:J

    long-to-int v1, v3

    invoke-direct {p0, v2, v1}, Les/p9;->b(II)V

    .line 13
    iget v1, p0, Les/p9;->C:I

    add-int/lit8 v3, v1, -0x1

    if-lez v3, :cond_5

    sub-int/2addr v1, v2

    .line 14
    iget-wide v2, p0, Les/p9;->A:J

    long-to-int v3, v2

    invoke-direct {p0, v1, v3}, Les/p9;->b(II)V

    goto :goto_2

    .line 15
    :cond_4
    iget v1, p0, Les/p9;->C:I

    iget-wide v2, p0, Les/p9;->A:J

    long-to-int v3, v2

    invoke-direct {p0, v1, v3}, Les/p9;->b(II)V

    .line 16
    :cond_5
    :goto_2
    iget-boolean v1, p0, Les/p9;->L:Z

    if-eqz v1, :cond_7

    iget-object v1, p0, Les/p9;->i:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_7

    .line 17
    new-instance v1, Ljava/util/ArrayList;

    iget-object v2, p0, Les/p9;->i:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    .line 18
    iget-object v2, p0, Les/p9;->i:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_3
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_6

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    .line 19
    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    int-to-long v3, v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 20
    :cond_6
    iget-object v2, p0, Les/p9;->i:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    .line 21
    iget-object v2, p0, Les/p9;->n:Ljava/util/List;

    invoke-interface {v2, v0, v1}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    :cond_7
    return-void
.end method
